<style>
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:2rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.58;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
.fee-disabled-nav {background:#bbb;color:#fff;}	
</style>
<div ng-if="pagedata.showjishe" class="popup" style="z-index:800">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showjishe=false"></i>
			<div class="fui-page-title c" style="margin-top:-1.5rem">
					<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #f2f2f2;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
					<div ng-if="!pagedata.member.myji ||pagedata.member.myji<=0" class="red">{{!pagedata.youmid?'您':'好友'}}目前还没有认养蛋鸡！</div>
					<div ng-if="pagedata.member.myji>0" class="red">已认养{{pagedata.member.myji||0}}只鸡，待喂{{pagedata.member.noweiji||0}}只，已喂{{pagedata.member.isweiji||0}}只</div>
			</div>
			<div class="fui-cell-group" style="padding:0.5rem;padding-bottom:3rem;max-height:20rem;overflow-y:scroll">
					<div ng-repeat="item in pagedata.list" class="fui-cell" style="margin-bottom:0.3rem;padding:0.5rem;border-radius:0.5rem;background-color: #f5c44b;">
						<div class="fui-cell-label">
							<img ng-if="item.type!=1" style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/muji.png" />
							<img ng-if="item.type==1" style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div class="" style="color:#fff">{{item.title}} <span class="label label-warning">({{item.type==1?'鸡苗':'蛋鸡'}})</span></div>
							<div ng-if="item.status==1" class="" style="color:#18bc9c">{{item.statustitle}}</div>
							<div ng-if="item.status!=1" class="" style="color:red">{{item.statustitle}}</div>
							<div ng-if="item.type!=1" class="" style="font-size:0.5rem;color:#f9f9f9">已喂养{{item.lsday||0}}天，已生鸡蛋{{item.jd||0}}枚，剩余预测鸡蛋{{item.lsyudan||0}}枚</div>
							<div ng-if="item.type==1" class="" style="font-size:0.5rem;color:#f9f9f9">已喂养{{item.lsday||0}}天，剩余喂养{{item.days||0}}天</div>
						</div>
						<div class="fui-cell-remark noremark">
							<div ng-if="item.isweitou!=1 && item.isweiji!=1 && (item.status==1 ||item.status==2)" style="padding-bottom:0.15rem"><span class="label label-success" ng-click="pagedata.toweiji(item.id)">点击喂养</span></div>
							<div ng-if="item.isweitou!=1 && item.isweiji==1 && (item.status==1 ||item.status==2)" style="padding-bottom:0.15rem"><span class="label label-default disabled">今日已喂养</span></div>
							<div ng-if="item.status==3" style="padding-bottom:0.15rem"><span class="label label-success" ng-click="post({},'jy_yangjidan/index/fuhuo/id='+item.id)">复活蛋鸡</span></div>
							<div ng-if="!pagedata.youmid && item.isweitou!=1 && item.lastday>1 && (item.status==1 ||item.status==2)" style="padding-bottom:0.15rem"><span class="label label-success" ng-click="pagedata.pay_submit({'jiid':item.id},'jy_yangjidan/index/weituo/')">委托投喂</span></div>
							<div ng-if="item.isweitou==1 && (item.status==1 ||item.status==2)" style="padding-bottom:0.15rem"><span class="label label-default disabled">已委托投喂</span></div>
							<div ng-if="item.days==0 && item.type==1 && item.status==1" style="padding-bottom:0.15rem"><span class="label label-danger" ng-click="pagedata.member.maijiid=item.id;pagedata.showmaiji2=true;pagedata.showjishe=false">委托销售</span></div>
						</div>
					</div>
			</div>
			<div ng-if="pagedata.member.myji>0" class="fui-navbar">
				<a href="javascript:;" ng-click="pagedata.showjilog=true;pagedata.showjishe=false" class="nav-item btn cartbtn">
					<div class="fee-tag-nav">
						养鸡日志
					</div>
				</a>
				<a ng-if="pagedata.member.noweiji>0" href="javascript:;" ng-click="pagedata.toweiji()" class="nav-item btn cartbtn">
					<div class="fee-tagup-nav">
						一键喂养
					</div>
				</a>
				<a ng-if="pagedata.member.noweiji<=0" class="nav-item btn cartbtn">
					<div class="fee-disabled-nav">
						今日已全部喂养
					</div>
				</a>
			</div>
		</div>
	</div>
	<script>
	if(scope.pagedata.showjishe){
		scope.pagedata.loading=true;
		scope.tool.get_list('jy_yangjidan/myji/list/',true);
		scope.pagedata.scroll_bottom=function(){
			scope.tool.get_list('jy_yangjidan/myji/list/');
		}
	}
	</script>
</div>